﻿using SqlSugar;

namespace Zhao.Models.DTO
{
    public class MenuDTO
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuText { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string? Icon { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary> 
        public string? WebUrlName { get; set; }

        /// <summary>
        /// 前端Url地址--路由的地址s
        /// </summary> 
        public string? WebUrl { get; set; }

        /// <summary>
        /// 保存Vue具体文件的某一个地址
        /// </summary> 
        public string? VueFilePath { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool statu { get; set; } = true;

        /// <summary>
        /// 是否叶节点
        /// </summary>
        public bool IsLeafNode { get; set; } = true;

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderBy { get; set; }


        /// <summary>
        /// 是否被选中
        /// </summary>
        public bool Selected { get; set; }

        /// <summary>
        /// 递归类型
        /// </summary> 
        public List<MenuDTO>? Children { get; set; }

    }
}